
package com.cx.bank.manager;

import java.io.IOException;
import java.util.List;

import com.cx.bank.hibernateModel.PageModel;
//导入模型层
import com.cx.bank.model.MoneyBean;
import com.cx.bank.model.UserBean;
//导入银行系统工具包
import com.cx.bank.util.AccountOverDrawnException;
import com.cx.bank.util.InvalidDepositException;

//定义接口及其方法
public interface ManagerInterface {
	// 查询方法
	public abstract double inquiry(MoneyBean money);

	// 取款方法
	public abstract void withdrawals(MoneyBean money, String sgetmoney, UserBean user)
			throws AccountOverDrawnException, InvalidDepositException;

	// 存款方法
	public abstract void deposit(MoneyBean money, Double storemoney, UserBean user)
			throws InvalidDepositException, IOException;

	// 登陆方法
	public abstract Boolean login(UserBean user) throws IOException;

	// 注册方法
	public abstract Boolean register(UserBean user) throws IOException;

	// 转账方法
	public abstract Boolean transfer(MoneyBean money, String transfermoney, String transfername, UserBean user)
			throws IOException, AccountOverDrawnException, InvalidDepositException, IOException;

	/*// 本账号数据库信息配置保存
	public void savaInformation(UserBean user, MoneyBean money) throws IOException;

	// 转入账号数据库信息配置保存
	public void savaInformation2(String user, Double money) throws IOException;*/

	// 从业务层得到交易明细
	public PageModel findAllTransaction(int pageNo, int pageSize, String name,String orderby);

	
}